package com.baor.controller;

import com.baor.domain.LogoVo;
import com.baor.service.LogoService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/logo")
public class LogoController {

    @Autowired
    private LogoService logoService;

    @RequestMapping("/logoList")
    public AjaxResult<?> logoList(@RequestBody Map<String, Object> params) {
        return logoService.logoList(params);
    }

    @RequestMapping("/logoInfo")
    public AjaxResult<?> logoInfo(@RequestBody LogoVo logoVo) {
        return logoService.logoInfo(logoVo);
    }

    @RequestMapping("/insertLogo")
    public AjaxResult<?> insertLogo(@RequestBody LogoVo logoVo) {
        return logoService.insertLogo(logoVo);
    }

    @RequestMapping("/updateLogo")
    public AjaxResult<?> updateLogo(@RequestBody LogoVo logoVo) {
        return logoService.updateLogo(logoVo);
    }

    @RequestMapping("/deleteLogo")
    public AjaxResult<?> deleteLogo(@RequestBody LogoVo logoVo) {
        return logoService.deleteLogo(logoVo);
    }

    @RequestMapping("/logoSelect")
    public AjaxResult<?> logoSelect(@RequestBody Integer siteId) {
        return logoService.logoSelect(siteId);
    }
}
